package com.lee.mysql.util;

import java.util.Random;
import java.util.UUID;

public class IdGenUtil {

    public static String uuid() {
        return UUID.randomUUID().toString().replace("-", "").toUpperCase();
    }

    public static String flakeId() {
        StringBuilder str = new StringBuilder();
        long l = System.currentTimeMillis();
        String s1 = String.valueOf(new Random().nextInt(900000)+100000);
        str.append(l).append(s1);
        return str.toString();
    }


    public static void main(String[] args) {
        String s = "1264855330576142336";
        System.out.println(System.currentTimeMillis());
    }

}
